.gallery-intro {
	padding: 0 0 1em 0;
	text-align: center;
}
.gallery ul.gallery--filter {
	display: inline-block;
	width: 100%;
	margin: 0;
	font-size: 15px;
}
.gallery ul.gallery--filter li.filter--item {
	list-style: none;
	float: left;
	margin: 0.5em;
	padding: 0.5em;
	border: 2px solid transparent;
	transition: all 0.25s ease;
	font-size: 90%;
	font-weight: normal;
	letter-spacing: 1px;
}
.gallery ul.gallery--filter li.filter--item.filter--item__active {
	color: #777;
	border: 2px solid #555;
}
.gallery ul.gallery--filter li.filter--item:hover {
	cursor: pointer;
	color: #555;
	border: 2px solid #333;
}
.gallery .gallery--content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.gallery .gallery--content .gallery--item {
	opacity: 0;
	transform: scale(0);
	transition: all 0.25s ease;
	flex: 0;
	overflow: hidden;
}
.gallery .gallery--content .gallery--item.gallery--item__active {
	opacity: 1;
	transform: scale(1);
	flex: 1 1 100%;
	margin: 1em;
}
.gallery .gallery--content .gallery--item .item--image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	box-shadow: 0 2px 6px -2px #bebebe;
	transition: all 0.25s ease;
}
.gallery .gallery--content .gallery--item.gallery--item__active:hover {
	transform: scale(1.05);
}
.gallery
	.gallery--content
	.gallery--item.gallery--item__active:hover
	.item--image
	img {
	transform: scale(1.1);
}

/* ----- Fancybox Overrides -----*/
.fancybox-container {
	z-index: 9999999 !important;
}
.fanybox-button::before {
	display: none !important;
}
.fancybox-caption__body strong {
	font-size: 1.3em;
}

@media screen and (min-width: 500px) {
	.gallery .gallery--content .gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 2em);
	}
}

@media screen and (min-width: 700px) {
	.gallery
		.gallery--content[columns='2']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 2em);
	}
	.gallery
		.gallery--content[columns='3']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(50% - 2em);
	}
	.gallery
		.gallery--content[columns='4']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(33.33% - 2em);
	}
}

@media screen and (min-width: 900px) {
	.gallery
		.gallery--content[columns='3']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(33.33% - 2em);
	}
	.gallery
		.gallery--content[columns='4']
		.gallery--item.gallery--item__active {
		flex: 0 1 calc(25% - 2em);
	}
}
